package com.简单项目.韩顺平房屋出租;

import java.util.Scanner;

public class HouseView {
    public void mainMenu() {
        boolean loop = true;
        String key = "";
        Scanner scanner = new Scanner(System.in);
        do {
            System.out.println("\n--------------房屋出租系统-------------");
            System.out.println("              1 新增房源              ");
            System.out.println("              2 查找房源              ");
            System.out.println("              3 删除房源              ");
            System.out.println("              4 修改房源信息           ");
            System.out.println("              5 房屋列表              ");
            System.out.println("              6 退   出              ");
            System.out.println("              请输入您的选择：          ");
            key = scanner.next();
            switch (key) {
                case "1"->q();
                case "2"->q();
                case "3"->q();
                case "4"->q();
                case "5"->q();
                case "6"->q();
                default -> System.out.println("您的输入有误，请重新输入");

            }
        } while (loop);

    }
    public void q() {
        System.out.println("q");
    }
}
